/**
 * 移动终端跳转规则
 */
function __go_pad(data) {

    if (data.code == 200) {
        window.location.href = data.url;
    }
}

(function() {
    if (/iPad|Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent.toLowerCase())) {
        (function() {
            var url = "http://w.huanqiu.com/apps/wap2w/go_pad.php";
            var script = document.createElement('script');
            script.setAttribute('src', url);
            document.getElementsByTagName('head')[0].appendChild(script);
        })()
    }

})(window);
